const STORAGE_TOKEN: string = 'token'
const USERINFO: string = 'userInfo'

//获取token
export const getToken = () => wx.getStorageSync(STORAGE_TOKEN)

//设置token
export const setToken = (token: string) => wx.setStorageSync(STORAGE_TOKEN, token)

//移除token
export const removeToken = () => wx.removeStorageSync(STORAGE_TOKEN)

//获取用户信息
export const getUserInfo = () => wx.getStorageSync(USERINFO)

//设置用户信息
export const setUserInfo = (userInfo: any) => wx.setStorageSync(USERINFO, userInfo)

//移除用户信息
export const removeUserInfo = () => wx.removeStorageSync(USERINFO)